package com.wang.spring;

import org.springframework.stereotype.Component;

@Component("daoImpl")
public class DaoImpl {

	@Override
	public String toString() {
		return "hello, I am a Dao";
	}
			
	public String getMsg() {
		System.out.println("dao getMsg is invoked");
		return "I am dao a msg";
	}
		
}
